<?php
defined('_JEXEC') or die('Restricted access'); 
include_once(JPATH_COMPONENT.DS.'include'.DS.'jobcountry.php');

JHTML::_('behavior.modal');

JHTML::stylesheet('autartijobs.css','components/com_autartijobs/css/',array('media'=>'all'));

?>


<div class="container">
<h1>Current job opportunities </h1>
<div class="autartijobs">

<?php 
foreach ($this->joblist as $jobcountry) {	
	echo("<br/><div id=\"autarticountry\">".$jobcountry->country."</div>");?>
	<ul>
	<?php 
	foreach ($jobcountry->jobs as $job) {
		echo("<li><a class=\"modal\" href=\"index.php?option=com_autartijobs&task=modalview&country=".$jobcountry->country."&job_id=".$job->id." \"rel=\"{handler: 'iframe', size: {x: 600, y: 500}}\">".$job->position." (".$job->town.")</a></li>");
	}?>
	</ul><?php 
}

?>
</div>
</div>

<TABLE BORDER="0" WIDTH="90%" ALIGN="CENTER" >
<TR>
		<TD WIDTH="10%">&nbsp;</TD>
		<TD ALIGN=CENTER COLSPAN="2"><BR><BR>
		
		<TABLE style="border-style: solid; border-width: thin; border-color: #0303a1;" WIDTH="100%" CELLPADDING="0" CELLSPACING="0">
		<TR><TD ALIGN="CENTER">
		<B>Worldwide Employment Opportunities</B>
		</TD></TR>
		</TABLE>
		
		</TD>
		<TD WIDTH="10%">&nbsp;</TD>
</TR>
</TABLE>